package com.tedu.bill.demo7;

/**
 * Author：毕龙
 * Date: 2024/4/16 19:27
 */
public class Pet{
    String name;

    public Pet() {
    }

    public Pet(String name) {
        this.name = name;
    }

    public void play(){
        System.out.println("玩宠物");
    }

    public Dog buy(double money){
       if(money == 10000){
          return  new Dog();
       }
       return null;


    }

}
